import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:qyou_app/model/carousel.dart';
import 'package:qyou_app/model/channel.dart';
import 'package:qyou_app/model/video.dart';

class NavCubit extends Cubit<List<Channel>>{
  NavCubit() : super([]);
  void updateNavData(List<Channel> nav) => emit(nav);
}

class CarouselCubit extends Cubit<List<Carousel>>{
  CarouselCubit() : super([]);
  void updateCarouselData(List<Carousel> carousel) => emit(carousel);
}

class VideoCubit extends Cubit<List<Video>>{
  VideoCubit() : super([]);
  void updateVideoData(List<Video> videos) => emit(videos);
}

class VideoPageNoCubit extends Cubit<int>{
  VideoPageNoCubit() : super(1);
  void reset() => emit(1);
  void next() => emit(state + 1);
}
